var elements = {
    anchors: new Array(),
    tableRows: new Array(),
    load: function() {
        numRows = document.getElementById('numRows').value;
        for (var i = 0; i < numRows; i++) {
            this.anchors[i] = document.getElementById("anchor" + i)
            this.tableRows[i] = document.getElementById("tableRow" + i);
        }
    }
};

var numRows = 0;

function clickRow(index) {
    this.location.href =  elements.anchors[index].href;
}
function enterRow(index) {
    elements.tableRows[index].setAttribute('properties', 'hover');
    this.status = elements.anchors[index].href;
}
function exitRow(index) {
    elements.tableRows[index].setAttribute('properties', '');
    this.status = "";
}
